﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;

namespace ALinq.BBS.Common
{
    public static class Logger
    {
        public static void OutputException(Exception e)
        {
            Trace.WriteLine("Message --- " + DateTime.Now);
            Trace.WriteLine(e.Message);
            Trace.WriteLine("Source ---");
            Trace.WriteLine(e.Source);
            Trace.WriteLine("StackTrace ---");
            Trace.WriteLine(e.StackTrace);
            Trace.WriteLine("TargetSite ---");
            Trace.WriteLine(e.TargetSite);
        }
    }
}
